package com.u.finance.pay.controller;

import com.u.finance.pay.service.IPayRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

/**
 * @program: u-finance
 * @description: 支付控制器类
 * @author: Alex Wu
 * @createDate: 2025-03-31 14:46
 **/

@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private IPayRecordService payRecordService;

    public boolean transferCount(String payoutAccount, BigDecimal amount, Integer payType) {
        return payRecordService.transferCount(payoutAccount, amount, payType);
    }


    public boolean payment(String payoutAccount, BigDecimal amount, Integer payType) {
        return payRecordService.transferCount(payoutAccount, amount, payType);
    }
}
